package permission

//Add 权限增加
func Add(origin, addValue int) int {
	return origin | addValue
}

//Delete 权限删除
func Delete(origin, delValue int) int {
	return origin & (^delValue)
}

//Check 权限检查
func Check(origin, cValue int) bool {
	return (origin & cValue) == cValue
}
